package org.example.system.common.dto.dic;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value="字典信息dto")
public class DicInfoDto implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @JsonSerialize(using= ToStringSerializer.class)
    protected Long id;

    @ApiModelProperty(value = "父级id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long parentId;

    @ApiModelProperty(value = "字典key")
    private String dicKey;

    @ApiModelProperty(value = "字典文本")
    private String dicText;

    @ApiModelProperty(value = "序号")
    private Integer sortNum;
}
